﻿using System;
using System.Security.Cryptography.X509Certificates;
using System.Windows.Forms;
using Screen = Caliburn.Micro.Screen;

namespace ThunderboltInterfaceSharp.ViewModels.UserControls.Download;

public class SingleDownloadItemViewModel : Screen
{
	//todo:
	//1.下载完成自动更改样式，或者重新定义新的下载完成控件
	//2.失败变色，完成事件，完成弹窗提醒等等
	public DownloadStatus Status { get; set; }
	public string ItemName { get; set; }
	public string ItemSize { get; set; }
	public DownloadFileType FileType { get; set; }
	public DateTime CreationTime { get; set; }
	public string DownloadProgress { get; set; }

	public double DownloadRatio { get; set; }

	public SingleDownloadItemViewModel()
	{
		ItemName = "无耻家庭.Shameless.Us.S07E12.中英字幕";
		Status = DownloadStatus.Paused;
		DownloadProgress = "303.0MB/655.6MB";
		DownloadRatio = 303.0*100 / 655.6;
	}

	
}
public enum DownloadFileType
{
	Mp4Video,
	M3U8Video,
	Folder,
	ExeProgram,
	BtTorrent
}
public enum DownloadStatus
{
	Downloading,
	Paused,
	Completed,
	DownloadFailed,
}



